package com.rinlink.gateway.jt808.jt808;

import io.github.hylexus.jt.data.msg.MsgType;
import io.github.hylexus.jt808.msg.RespMsgBody;

public class BytesRespMsgBody implements RespMsgBody {

    byte[] body;

    short msgId;

    public BytesRespMsgBody(short msgId,byte[] body) {
        this.body = body;
        this.msgId = msgId;
    }

    @Override
    public byte[] toBytes() {
        return body;
    }

    @Override
    public MsgType replyMsgType() {
        return new CustomMsgType(msgId);
    }
}
